package com.nbsaas.boot.app.ext.apis;

import com.nbsaas.boot.app.ext.domain.simple.AppMenuExtSimple;
import com.nbsaas.boot.rest.response.ListResponse;

public interface AppMenuTenantExtApi {

    /**
     * 获取系统的菜单树
     *
     * @return
     */
    ListResponse<AppMenuExtSimple> root(Long tenantId, Long appId);


    ListResponse<AppMenuExtSimple> root(Long tenantId, Long appId, Boolean handleDisabled);

    /**
     * 根据角色获取系统菜单
     *
     * @param role
     * @return
     */
    ListResponse<AppMenuExtSimple> findByRole(Long tenantId, Long appId, Long role);
}
